 var dias_semana = new Array ('Domingo',
                                  'Lunes',
                                  'Martes',
                                  'Miercoles',
                                  'Jueves',
                                  'Viernes',
                                  'Sabado');

var monthNames = new makeArray(12);
monthNames[0] = "enero";
monthNames[1] = "febrero";
monthNames[2] = "marzo";
monthNames[3] = "abril";
monthNames[4] = "mayo";
monthNames[5] = "junio";
monthNames[6] = "julio";
monthNames[7] = "agosto";
monthNames[8] = "septiembre";
monthNames[9] = "octubre";
monthNames[10] = "noviembre";
monthNames[11] = "diciembre";

var now = new Date();
var year = now.getYear();

var dia = now.getDay ();
dia = dias_semana[dia];

if (year < 2000) year = year + 1900;

function makeArray(len)
{
for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}